home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: jhewett@ix.netcom.com (Jerry Hewett)
- Newsgroups: comp.lang.c++
- Subject: Re: const FAR* for a DLL
- Date: Mon, 08 Apr 96 17:31:11 GMT
- Organization: Netcom
- Message-ID: <N.040896.103111.84@ix.netcom.com>
- References: <828873144.24425@uribe.demon.co.uk>
- NNTP-Posting-Host: tem-ca1-23.ix.netcom.com
- X-NETCOM-Date: Mon Apr 08 10:32:07 AM PDT 1996
- X-Newsreader: Quarterdeck Message Center [2.00]
-
- Damn! Screwed up with that sample code I posted -- sorry about that!
-
- (1) BYTE is "typedef unsigned char BYTE;" (added this to my STDLIB.H so long
- ago that I keep forgetting it's not part of the language...), so ignore
- it in the sample.
-
- (2) "colour" should be bit-shifted, not masked:
-
- // bit-shift colour to BGR byte values (page 101)
-
- bBlu = colour >> 16;
- bGrn = colour >> 8;
- bRed = colour;
-
- Jerry H.
-
-
-